package cn.edu.neusoft.yyd208.foodorder.model;

import cn.edu.neusoft.yyd208.foodorder.bean.FoodBean;
import cn.edu.neusoft.yyd208.foodorder.iface.FoodInfoIface;
import cn.edu.neusoft.yyd208.foodorder.listener.TListener;
import cn.edu.neusoft.yyd208.foodorder.service.Service;
import retrofit2.Call;
import retrofit2.Retrofit;


public class FoodInfoModel extends RetrofitBaseModel implements FoodInfoIface<FoodBean> {
    private Service service;
    private Retrofit retrofit;

    public FoodInfoModel() {
        retrofit=getRetrofit();
    }

    @Override
    public void getFoodInfoMessage(String Shop_id, TListener<FoodBean> tListener1) {
        service=getService();
        Call<FoodBean> call = service.showFoodInfo(Shop_id);
        callenqueue(call,tListener1);
    }
}
